/**
 * $Id$
 * Copyright 2011-2014 Oak Pacific Interactive. All rights reserved.
 */
package com.malphi.framework.core.xmlconfig.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.malphi.framework.core.xmlconfig.XmlConfig;
import com.malphi.framework.core.xmlconfig.impl.MemCachePoolConfig.PoolNode;

/**
 * @author <a href="mailto:ruofei.ma@renren-inc.com">ma ruofei</a>
 * @version 1.0 2011-11-21 上午11:19:45
 * @since 1.0
 */
public class MemCacheConfig implements XmlConfig, Serializable {

    private static final long serialVersionUID = -1766178615081882625L;

    private static Map<String, Class> classMap = new HashMap<String, Class>();

    private String prefix;

    private MemCachePoolConfig poolConfig;

    public MemCachePoolConfig getPoolConfig() {
        return poolConfig;
    }

    public void setPoolConfig(MemCachePoolConfig poolConfig) {
        this.poolConfig = poolConfig;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    /* (non-Javadoc)
     * @see com.malphi.framework.core.xmlconfig.XmlConfig#getClassMap()
     */
    @Override
    public Map<String, Class> getClassMap() {
        classMap.put(MemCacheConfig.class.getSimpleName(), MemCacheConfig.class);
        classMap.put("poolConfig", MemCachePoolConfig.class);
        classMap.put(PoolNode.class.getSimpleName(), PoolNode.class);
        return classMap;
    }

}
